package com.tsd.jxc.goods.entity;

import com.tsd.core.utils.DoubleUtil;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品价格表扩展
 *
 * @author david
 * @date 2024/05/06 16:33:50
 */
@ApiModel(description = "商品价格表扩展")
public class JxcGoodsPriceExt extends JxcGoodsPrice implements Serializable {

    private List<String> default_for_bill_list;

    private List<String> goods_list;

    public List<String> getDefault_for_bill_list() {
        return default_for_bill_list;
    }

    public void setDefault_for_bill_list(List<String> default_for_bill_list) {
        this.default_for_bill_list = default_for_bill_list;
    }

    public List<String> getGoods_list() {
        return goods_list;
    }

    public void setGoods_list(List<String> goods_list) {
        this.goods_list = goods_list;
    }

    public void calcVolume() {
        double volume = DoubleUtil.mul(this.getLength_cm(), this.getWidth_cm());
        volume = DoubleUtil.mul(volume, this.getHeight_cm());
        this.setVolume_cm3(BigDecimal.valueOf(volume));
    }
}